const express = require('express');
const expressArtTemplate = require('express-art-template');
const bodyParser = require('body-parser')

let app = express();

app.engine('html', expressArtTemplate);
app.use('/public', express.static('public'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}))

// 抽离路由放置于router中
let stuRouter = require('./router/stu');
app.use('/stu', stuRouter)


app.listen(8080);

